import request from '@/utils/request'

// 头程配货单-列表
export function queryHeadOrderList(data) {
  return request({
    url: '/wms_v1_pc/head-goods-order/list-head-goods-order',
    method: 'POST',
    data
  })
}

// 头程配货单-添加
export function saveHeadOrder(data) {
  return request({
    url: '/wms_v1_pc/head-goods-order/add-head-goods-order',
    method: 'POST',
    data
  })
}

// // 头程配货单-修改
// export function updateAdjustOut(data) {
//   return request({
//     url: '/wms_v1_pc/adjust-out-order/update-adjust-out-order',
//     method: 'POST',
//     data
//   })
// }

// 头程配货单-查看
export function getHeadOrderDetail(params) {
  return request({
    url: '/wms_v1_pc/head-goods-order/get-head-goods-order-detail',
    method: 'GET',
    params
  })
}

// 头程配货单-日志
export function getHeadOrderLog(params) {
  return request({
    url: '/wms_v1_pc/head-goods-order/log-head-goods-order',
    method: 'GET',
    params
  })
}

// 头程配货单-打印
export function printHeadOrder(data) {
  return request({
    url: '/wms_v1_pc/head-goods-order/print-head-goods-order',
    method: 'POST',
    data
  })
}

// 头程配货单-配货
export function distributionHeadOrder(data) {
  return request({
    url: '/wms_v1_pc/head-goods-order/goods-head-goods-order',
    method: 'POST',
    data
  })
}

// // 头程配货单-打包
// export function packHeadOrder(data) {
//   return request({
//     url: '/wms_v1_pc/head-goods-order/pack-head-goods-order',
//     method: 'POST',
//     data
//   })
// }

// 头程配货单-取消
export function cancelHeadOrder(data) {
  return request({
    url: '/wms_v1_pc/head-goods-order/cancel-head-goods-order',
    method: 'POST',
    data
  })
}

// 头程配货单-导入箱数据
export function importHeadOrder(data) {
  return request({
    url: '/wms_v1_pc/head-goods-order/import-box-head-goods-order',
    method: 'POST',
    data
  })
}

// 头程配货单-装箱确认
export function boxConfirmHeadOrder(data) {
  return request({
    url: '/wms_v1_pc/head-goods-order/box-confirm-head-goods-order',
    method: 'POST',
    data
  })
}

// 头程配货单-出库交接
export function outHeadOrder(data) {
  return request({
    url: '/wms_v1_pc/head-goods-order/out-head-goods-order',
    method: 'POST',
    data
  })
}

// 头程装箱单-列表
export function queryHeadList(data) {
  return request({
    url: '/wms_v1_pc/head-box-order/list-head-box-order',
    method: 'POST',
    data
  })
}

// 头程装箱单-查看
export function getHeadBoxDetail(params) {
  return request({
    url: '/wms_v1_pc/head-box-order/get-head-box-order-detail',
    method: 'GET',
    params
  })
}